import Layout from '@/layout'

/**
 * 数据库管理相关路由
 */
const databaseRouter = {
  path: '/database',
  name: 'database',
  component: Layout,
  alwaysShow: true,
  meta: { title: '数据库管理', icon: 'el-icon-receiving' },
  children: [
    {
      path: 'metadata',
      name: 'metadata',
      component: () => import('@/views/database/metadata'),
      meta: { title: '数据库元数据', icon: 'el-icon-magic-stick', 'pluginId': 'tools-database' }
    },
    {
      path: 'codeGenerate',
      name: 'codeGenerate',
      component: () => import('@/views/database/code/codeGenerate'),
      meta: { title: '代码生成', icon: 'el-icon-toilet-paper', 'pluginId': 'tools-database' }
    },
    {
      path: 'metaCompare',
      name: 'metaCompare',
      component: () => import('@/views/database/metacompare'),
      meta: { title: '元数据比对', icon: 'el-icon-toilet-paper', 'pluginId': 'tools-database' }
    },
    {
      path: 'dataExport',
      name: 'dataExport',
      component: () => import('@/views/database/data/dataManager'),
      meta: { title: '数据管理', icon: 'el-icon-set-up', 'pluginId': 'tools-database' }
    }
  ]
}

export default databaseRouter
